package com.qimu.saiyou.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 题目
 *
 * @TableName question
 */
@TableName(value = "question")
@Data
public class Question implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 题目
     */
    private String content;

    /**
     * 类型：1单选 2多选 3判断 4主观
     */
    private Integer type;

    private Long userId;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 更新时间
     */
    private Date updateTime;
    @TableField(exist = false)
    private Integer score;
    @TableField(exist = false)
    private Long userPaperId;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}